﻿//********************************************************************
// Author:      刘艳明
// Create Date: 2013-03-20
// Description: 
//
// Version:     1.0.0.0
// Change History:
// Date		    Who		      Changes Maded
//--------------------------------------------------------------------
// Please Insert the Modiy record here!
//--------------------------------------------------------------------
//********************************************************************



using System;
using System.ComponentModel;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Xml.Serialization;
using MillerApp.DataContract.Common;

namespace MillerApp.DataContract.MillerDB
{
	#region FundflowEntity
	/// <summary>
	/// 这个实体提供了 FundflowEntity ()的属性和方法.
	/// </summary>
	 [DataContract]
	public partial class FundflowEntity : BaseEntity<FundflowEntity>,IEquatable<FundflowEntity>
	{
				
		#region Properties
        private DateTime? _tradeday;
        /// <summary>
        /// 获取或设置tradeday date AllowDBNull
        /// </summary>
        [DataMember]
        public DateTime? tradeday
        {
            get {return _tradeday;}
            set
            {
                 _tradeday = value;
                 //NotifyPropertyChange("tradeday");
            }
        }
        
        private int? _outflowstockscount;
        /// <summary>
        /// 获取或设置outflowstockscount integer AllowDBNull
        /// </summary>
        [DataMember]
        public int? outflowstockscount
        {
            get {return _outflowstockscount;}
            set
            {
                 _outflowstockscount = value;
                 //NotifyPropertyChange("outflowstockscount");
            }
        }
        
        private int? _inflowstockscount;
        /// <summary>
        /// 获取或设置inflowstockscount integer AllowDBNull
        /// </summary>
        [DataMember]
        public int? inflowstockscount
        {
            get {return _inflowstockscount;}
            set
            {
                 _inflowstockscount = value;
                 //NotifyPropertyChange("inflowstockscount");
            }
        }
        
        private int? _seriesdays;
        /// <summary>
        /// 获取或设置seriesdays integer AllowDBNull
        /// </summary>
        [DataMember]
        public int? seriesdays
        {
            get {return _seriesdays;}
            set
            {
                 _seriesdays = value;
                 //NotifyPropertyChange("seriesdays");
            }
        }
        
        private decimal? _inflowpfr;
        /// <summary>
        /// 获取或设置inflowpfr numeric(8, 6) AllowDBNull
        /// </summary>
        [DataMember]
        public decimal? inflowpfr
        {
            get {return _inflowpfr;}
            set
            {
                 _inflowpfr = value;
                 //NotifyPropertyChange("inflowpfr");
            }
        }
        
        private decimal? _netflow;
        /// <summary>
        /// 获取或设置netflow numeric(18, 4) AllowDBNull
        /// </summary>
        [DataMember]
        public decimal? netflow
        {
            get {return _netflow;}
            set
            {
                 _netflow = value;
                 //NotifyPropertyChange("netflow");
            }
        }
        
        private decimal? _outflow;
        /// <summary>
        /// 获取或设置outflow numeric(18, 4) AllowDBNull
        /// </summary>
        [DataMember]
        public decimal? outflow
        {
            get {return _outflow;}
            set
            {
                 _outflow = value;
                 //NotifyPropertyChange("outflow");
            }
        }
        
        private decimal? _inflow;
        /// <summary>
        /// 获取或设置inflow numeric(18, 4) AllowDBNull
        /// </summary>
        [DataMember]
        public decimal? inflow
        {
            get {return _inflow;}
            set
            {
                 _inflow = value;
                 //NotifyPropertyChange("inflow");
            }
        }
        
        private string _itemcode = String.Empty;
        /// <summary>
        /// 获取或设置itemcode character varying(50) AllowDBNull
        /// </summary>
        [DataMember]
        public string itemcode
        {
            get {return _itemcode;}
            set
            {
                 _itemcode = value;
                 //NotifyPropertyChange("itemcode");
            }
        }
        
        private int _id;
        /// <summary>
        /// 获取或设置id integer NotAllowDBNull
        /// </summary>
        [DataMember]
        public int id
        {
            get {return _id;}
            set
            {
                 _id = value;
                 //NotifyPropertyChange("id");
            }
        }
        

		#endregion
		
		/// <summary>
        /// 构造函数
        /// </summary>
		public FundflowEntity()
		{		
		}
		
		#region IEquatable<FundflowEntity> 成员
		/// <summary>
        /// 比较两个实例数据库表中的字段是否相等
        /// </summary>
        /// <param name="other">FundflowEntity</param>
        /// <returns>bool</returns>
		public bool Equals(FundflowEntity other)
        {
			return this.tradeday.Equals(other.tradeday)&& this.outflowstockscount.Equals(other.outflowstockscount)&& this.inflowstockscount.Equals(other.inflowstockscount)&& this.seriesdays.Equals(other.seriesdays)&& this.inflowpfr.Equals(other.inflowpfr)&& this.netflow.Equals(other.netflow)&& this.outflow.Equals(other.outflow)&& this.inflow.Equals(other.inflow)&& this.itemcode.Equals(other.itemcode)&& this.id.Equals(other.id);
        }
	
		#endregion
	       		
		#region IDataKey 成员
		

        #endregion
	}

	#endregion
}
